package com.nobuyme.box.xunfei;

import android.os.Environment;

import com.pachong.android.framework.picture.browser.constant.Constant;

import java.io.File;

/**
 * @author zwj 2015-5-22 12:52
 */
public class FileUtils {

    public static final String ROOT_PATH = Environment.getExternalStorageDirectory().getPath() + "/bookrack/";

    /**
     * 判断sdcard是否可用
     *
     * @return true, 可用; false,不可用
     */
    public static boolean sdcardIsEnable() {
        if (Environment.getExternalStorageState().equals(
                Environment.MEDIA_MOUNTED)) {
            return true;
        }
        return false;
    }



    /**
     * 获取语音缓存目录
     */
    public static File getIntechTTSCacheDir() {
        return new File(Constant.PATH_VOICE);
    }



}